#include <deque>
#include <fstream>
#include <iostream>
#include <list>
#include <sstream>
#include <string>
#include <vector>

using namespace std;

int main(int argc, char **argv) {
  list<string> deque1;
  string buf;
  while (cin >> buf) {
    deque1.push_back(buf);
  }
  list<string>::iterator it1 = deque1.begin();
  for (; it1 != deque1.end(); it1++) {
    cout << *it1 << endl;
  }
  return 0;
}